Skip to content

[Amber] Fix: Workflow startup greeting should render client-side, not round-trip through Claude#780

Open
github-actions[bot] wants to merge 2 commits intomainfrom
amber/issue-779-workflow-startup-greeting-should-render-client-sid
Open

[Amber] Fix: Workflow startup greeting should render client-side, not round-trip through Claude#780
github-actions[bot] wants to merge 2 commits intomainfrom
amber/issue-779-workflow-startup-greeting-should-render-client-sid

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 3, 2026

Automated Fix by Amber Agent

This PR addresses issue #779 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: 84421be
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #779

…tripping through Claude

When a user selects a workflow, the startupPrompt from ambient.json is now
displayed directly in the WelcomeExperience component rather than being sent
as a hidden user message to the Claude API. This eliminates an unnecessary
round-trip that added latency and consumed API tokens.

- Backend: expose `startupPrompt` from ambient.json in the OOTB workflow list API
- Frontend: add `startupPrompt` to WorkflowConfig and OOTBWorkflow types
- Frontend: track and expose `workflowGreeting` from useWorkflowManagement hook
- Frontend: render greeting message in WelcomeExperience after workflow selection
- Runner: remove `_trigger_workflow_greeting()` and its aiohttp/uuid dependencies

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added amber-generated PR created by Amber background agent auto-fix labels Mar 3, 2026
@ambient-code ambient-code bot modified the milestone: Merge Queue Mar 3, 2026
@jeremyeder jeremyeder closed this Mar 7, 2026
@jeremyeder jeremyeder reopened this Mar 7, 2026
jeremyeder pushed a commit that referenced this pull request Mar 8, 2026
Tests that precisely validate the Critical fix from the PR #780 review:

1. Switching from a workflow WITH startupPrompt to one WITHOUT must
   clear workflowGreeting to null (not leave stale greeting displayed).
2. Empty-string startupPrompt must also clear the greeting.
3. Failed activation must not set any greeting.

All 3 tests FAIL on the pre-patch code (conditional setWorkflowGreeting)
and PASS on the fix (unconditional setWorkflowGreeting).

Adds vitest + @testing-library/react as devDependencies and a minimal
vitest.config.ts, matching the test infrastructure from PR #834.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jeremyeder added a commit to jeremyeder/platform that referenced this pull request Mar 9, 2026
…tup greeting with review fixes

Combines the workflow startup greeting feature (PR ambient-code#780) with review
feedback fixes (PR ambient-code#846) into a single PR. Includes pre-commit formatting
fixes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jeremyeder pushed a commit to jeremyeder/platform that referenced this pull request Mar 9, 2026
Tests that precisely validate the Critical fix from the PR ambient-code#780 review:

1. Switching from a workflow WITH startupPrompt to one WITHOUT must
   clear workflowGreeting to null (not leave stale greeting displayed).
2. Empty-string startupPrompt must also clear the greeting.
3. Failed activation must not set any greeting.

All 3 tests FAIL on the pre-patch code (conditional setWorkflowGreeting)
and PASS on the fix (unconditional setWorkflowGreeting).

Adds vitest + @testing-library/react as devDependencies and a minimal
vitest.config.ts, matching the test infrastructure from PR ambient-code#834.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jeremyeder added a commit to jeremyeder/platform that referenced this pull request Mar 9, 2026
…tup greeting with review fixes

Combines the workflow startup greeting feature (PR ambient-code#780) with review
feedback fixes (PR ambient-code#846) into a single PR. Includes pre-commit formatting
fixes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
jeremyeder added a commit to jeremyeder/platform that referenced this pull request Mar 9, 2026
…ode#780 + ambient-code#846)

Replaces the server-side workflow greeting round-trip with a client-side
approach that provides instant feedback when users select a workflow.

Backend:
- Add `startupPrompt` and `greeting` fields to OOTBWorkflow struct
- Parse both fields from ambient.json in workflow repos

Frontend:
- Display `greeting` text with typewriter streaming effect below tiles
- Add `hidden` option to sendMessage for system-initiated messages
- Remove 3-second hardcoded sleep after workflow activation
- Remove server-side workflowGreeting state (no LLM round-trip needed)

Runner:
- Remove server-side greeting trigger logic (no longer needed)
- Clean up unused imports (aiohttp, uuid, load_ambient_config)

Tests:
- Add vitest regression tests for stale greeting and race conditions
- Add vitest.config.ts for frontend unit testing

Companion: ambient-code/workflows#61 (ambient.json fixes)

Supersedes ambient-code#780 and ambient-code#846.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ambient-code
Copy link
Contributor

ambient-code bot commented Mar 10, 2026

Review Queue — Blockers Found

Check Status Detail
CI FAIL ---
Merge conflicts FAIL ---
Review comments FAIL ---
Jira hygiene FAIL ---
Fork PR FAIL ---
Staleness FAIL ---

Action needed: Author needs to resolve merge conflicts

This comment is auto-generated by the Review Queue workflow and will be updated when the PR changes.

@ambient-code ambient-code bot modified the milestones: Merge Queue, Review Queue Mar 12, 2026
@Gkrumbach07 Gkrumbach07 removed this from the Review Queue milestone Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amber-generated PR created by Amber background agent auto-fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow startup greeting should render client-side, not round-trip through Claude

2 participants